﻿<cftry>
<cfset employeeid = trim(form.employeenumber)/>
<cfset companydsn = trim(form.companydsn)/>

<cfinvoke 
			method="loadexitinterviewform" 
		    component="exitinterview" 
			returnvariable="processresult"
		    processkey="answerable"
		    employeeaidee = "#employeeid#"
		    companydsn = "#companydsn#"
		    
>

<!---<cfquery 
		name="qryCmfpa" 
		datasource="#companydsn#"
		maxrows="1"
>
	SELECT A.PERSONNELIDNO,
	       A.COMPANYCODE,
	       A.SALUTATION,
	       A.LASTNAME,
	       A.FIRSTNAME,
	       A.MIDDLENAME,
	       A.SUPERIORCODE,
	       A.DEPARTMENTCODE,
	       A.POSITIONCODE,
	       A.DATEHIRED,
	       C.AGE
	  FROM CMFPA A LEFT JOIN CIN21PERSONALINFO C ON (A.PERSONNELIDNO = C.PERSONNELIDNO)
	 WHERE A.PERSONNELIDNO = '#employeeid#'

</cfquery>--->


<cfif processresult NEQ "">
		<cfoutput>#processresult#</cfoutput>
<cfelse>
	<cfoutput>
	{
	"form": [{
			"detail":"There is a problem in loading the exit interview form. Please try again.", 
			"message":"empty"
		}]
	}	
	</cfoutput>
</cfif>


	<cfcatch>
		<cfoutput>
		{
		"form": [{
				"detail":"#cfcatch.Detail#", 
				"message":"#cfcatch.Message#"
			}]
		}
			
		</cfoutput>
		
	</cfcatch>

</cftry>

<cfsetting showdebugoutput="no" >